package chapter02;

public class Example04 {
    public static void main (String[] args){
        int x = 12;
        {
            int y = 96;
            System.out.println("x is " + x);
            System.out.println("y is " + y);
        }
//        y = x;
        System.out.println("x is " + x);
    }

    public static class Eample05 {
        public static void main (String[] args) {
            short s = 3;
            int i = 5;
            // 计算时s 和i 都提升为int型 计算结果int型 但是Java强制转化成short赋值给s
            s += i;
            System.out.println("s = " + s);
        }
    }
}
